<div class="modal fade " id="editCommonModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document" style="width:75%">
        <div class="box box-info">
            <div class="box-header with-border">
                <h3 class="box-title">账户指标值维护</h3>
                <button type="button" class="btn btn-danger pull-right" data-dismiss="modal">关闭</button>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form class="form-horizontal">
                <div class="box-body">                 
                    <table id="editCommonQuotaTable" data-toggle="table" data-url="#"
                           data-page-size="20" data-height="600" data-search="true" data-unique-id="id"
                           data-toolbar="#commonQuotaToolbar">
                        <thead>
                        <tr>
                            <th data-field="index" data-formatter="indexFormatter">序号</th>
                            <th data-field="dimensionQuotaTypeName">评价维度</th>
                            <th data-field="quotaTypeName" >具体指标</th>
                            <th data-field="quotaValueName" data-formatter="quotaValueNameFormatter" data-align="center">指标值</th>
                            <th data-field="score">分数</th>
                        </tr>
                        </thead>
                    </table>
                </div>
                <!-- /.box-body -->
                <div class="box-footer">
                    <button type="button" class="btn btn-default pull-right" data-dismiss="modal">完成</button>
                </div>
                <!-- /.box-footer -->
            </form>
        </div>
    </div>
</div>
<script>

    function editCommonModalInit(productScoreId) {
        $("#productScoreId").val(productScoreId);
        $("#editCommonQuotaTable").bootstrapTable("refresh", {url: "/productscore/detailInfo/list?productScoreId=" + productScoreId});
    }
    function quotaValueNameFormatter(value, row, index) {
        return value.replace("tableIndex", index);
    }

</script>